//
//  ORDataItem.h
//  OR_1
//
//  Created by Luboš Kulič on 8/21/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DataItem.h"
#import "XMLParserWorker.h"
#import "ORBasicInfo.h"



/**
 Basic DataItem from OR. 
 
 The object (or its descendants) holds every data from a given OR entitity and is capable of parsing them
 from the answer XML. Thus it is in fact an XML parser.
 
 For proper work, every subclass has to register itself as a parser for some element 
 (by calling XMLParserWorker.+registerParser: forElement:)
 */
@interface ORDataItem : XMLParserWorker <DataItem> {
	@public
	ORBasicInfo * basicInfo;
	
	/// List of ORBusinessActivity objects
	NSMutableArray * businesses;
	
	/// List of ORMember objects
	NSMutableArray * statutoryBodies;
	
	
	// and so on...

}

-(NSUInteger) numberOfValues;

-(id) valueForIndex:(int)index;


@end
